/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="TIPOSACOMODACOES")
public class TiposAcomodacoesProteu implements Serializable{
    
    @Id
    @Column(name="TAC_ST_CODIGO")
    private String tacStCodigo;
    @Column(name="TAC_ST_DESCRICAO")
    private String tacStDescricao;

    public String getTacStCodigo() {
        return tacStCodigo;
    }

    public void setTacStCodigo(String tacStCodigo) {
        this.tacStCodigo = tacStCodigo;
    }

    public String getTacStDescricao() {
        return tacStDescricao;
    }

    public void setTacStDescricao(String tacStDescricao) {
        this.tacStDescricao = tacStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final TiposAcomodacoesProteu other = (TiposAcomodacoesProteu) obj;
        if ((this.tacStCodigo == null) ? (other.tacStCodigo != null) : !this.tacStCodigo.equals(other.tacStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 73 * hash + (this.tacStCodigo != null ? this.tacStCodigo.hashCode() : 0);
        return hash;
    }



}
